package com.warom.sdg.dto;

/**
 * 用户查询数据传输对象
 * 用于查询用户列表，支持分页和过滤
 */
public class UserQueryDto {
    private String keyword;
    private String role;
    private Integer page;
    private Integer pageSize;

    // 无参构造函数
    public UserQueryDto() {
    }

    // 带参构造函数
    public UserQueryDto(String keyword, String role, Integer page, Integer pageSize) {
        this.keyword = keyword;
        this.role = role;
        this.page = page;
        this.pageSize = pageSize;
    }

    // Getters and Setters
    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    @Override
    public String toString() {
        return "UserQueryDto{" +
                "keyword='" + keyword + '\'' +
                ", role='" + role + '\'' +
                ", page=" + page +
                ", pageSize=" + pageSize +
                '}';
    }
} 